<?php
$host="localhost";
$user="root";
$pwd="";
$dbname="sim";

//$host="u312678.mysql.masterhost.ru";
//$user="u312678";
//$pwd="tortic7stros2";
//$dbname="u312678_agent";
//

$db=mysql_connect($host,$user,$pwd);
mysql_select_db($dbname,$db);
?>